package com.commerce.service;

import com.commerce.model.Admin;
import com.commerce.page.AdminPage;
import com.commerce.page.Page;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * @author wyj
 * @Title:
 * @Description:
 */
public interface AdminService extends BeanService<Admin>{

    /**
     * 登录查询
     * @param admin
     * @param HttpSession
     * @return
     */
    String login(Admin admin , HttpSession HttpSession);

    /**
     * 分辨查询
     * @param adminPage
     * @return
     */
    Page selectByPage(AdminPage adminPage);

    /**
     * 查询账号
     * @param name
     * @return
     */
    String selectByAccount(String name);

    /**
     * 开启或关闭
     * @param id
     * @return
     */
    String updateByOpen(int id);

    /**
     * 修改密码
     * @param pwd
     * @param pwdnew
     * @param session
     * @return
     */
    String updatePwd(String password,String pwd , String pwdnew , HttpSession session);

}
